package quartz.entity;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.validation.constraints.NotNull;

@Data
@Document(collection = "job_entity")
public class JobEntity extends BaseEntity {
    @NotNull
    private String classPath;
    @NotNull
    private String targetMethod;
    @NotNull
    private String cron;
    private String description;
    private String jobName;
    private String jobGroup;
    private String triggerName;
    private String triggerGroup;
    private Boolean isActive;
}
